home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / wndwc20.zip / EX3.C < prev    next >
Text File  |  1989-03-06  |  1KB  |  27 lines

  1. /*     EXAMPLE 3:  Different modes and a hidden window
  2.      ----------------------------------------------------------------------*/
  3.      #include <conio.h>
  4.      #include <dos.h>
  5.      #include "wndwc20.h"
  6.  
  7.      void main()
  8.      {
  9.          qinit();
  10.          initwindow( LIGHTGRAY_BG, 1, 0 );
  11.          setwindowmodes( HIDDENMODE | ZOOMMODE | CURSOROFFMODE );
  12.          makewindow( 5, 20, 15, 40, WHITE+BLUE_BG, CYAN+BLUE_BG,
  13.                      SINGLE_BORDER, WINDOW1 );
  14.          wwritec( 12, "Where is it?" );
  15.          writetohidden( WINDOW1 );    /* Write to the hidden window. */
  16.          titlewindow( BOTTOM, RIGHT, YELLOW+BLUE_BG, " My Second Window " );
  17.          wwritec( 3, "Here it is ..." );
  18.          wbrdrh( 7 );                 /* Add an extra horizontal border. */
  19.          wwritec( 10, "It was hidden!" );
  20.          delay( 2000 );
  21.          showwindow( WINDOW1 );       /* Put it back on the screen. */
  22.          delay( 2500 );
  23.          removewindow();
  24.          getch();
  25.      }
  26.  
  27.